#ifndef __RN_UI_SRC_INCLUDE__
#define __RN_UI_SRC_INCLUDE__
#include "ui_AlarmInfoWidget.h"
#include "WarnListModel.h"
#include "../../Target/data_interface.h"

class AlarmInfoWidget :public QWidget
{
    Q_OBJECT
public:
    AlarmInfoWidget(QWidget* parent = NULL);
    virtual ~AlarmInfoWidget();

    void AddAlarm(const UserRegionAlarmParam &param);

public slots:
    void onClearAllAlarm();
    void AddAlarmTrigger(const UserRegionAlarmParam &param);

    void onDoubleClicked(const QModelIndex &index);
signals:
    void AddAlarmSignal(const UserRegionAlarmParam &param);

    void select_target(info_keys);
private:
    Ui::FormAlarm ui;
    WarnListModel* warnModel;
};

#endif